import { Component, OnInit, Input } from '@angular/core';

@Component({
  selector: 'app-other-service-list',
  templateUrl: './other-service-list.component.html',
  styleUrls: ['./other-service-list.component.scss'],
})
export class OtherServiceListComponent implements OnInit {
  @Input() tagData: any;
  constructor() { }

  ngOnInit() {
    // this.demo();
  }
  //
  demo() {
    this.tagData = {
      type: "tag",
      style: "otherservice-style",
      name: "otherservice-style",
      linearLayout: "body",
      data: {
          isMargin: false,
          pageTotal: 1,
          data: [
              {
                  imageUrl: "",
                  link: {
                      type: "page",
                      params: {
                          id: "5d3589a2c9517b00013a3afa"
                      },
                      target: "144631"
                  },
                  index: 1,
                  text: "第一条普通的服务记录 ",
                  time: "2019-07-23 02:02:10  ",
                  username: "五五"
              },
              {
                  imageUrl: "",
                  link: {
                      type: "page",
                      params: {
                          id: "5d358a47c9517b00013a3afb"
                      },
                      target: "144631"
                  },
                  index: 2,
                  text: "啦啦啦啦啦。联系方式：微信。 ",
                  time: "2019-07-23 02:04:55  ",
                  username: "五五"
              },
              {
                  imageUrl: "",
                  link: {
                      type: "page",
                      params: {
                          id: "5d358aa0c9517b00013a3afc"
                      },
                      target: "144631"
                  },
                  index: 3,
                  text: "eeeeeeee分给我。外网：赶集网。外网网址：wwww ",
                  time: "2019-07-23 02:06:24  ",
                  username: "五五"
              }
          ],
          pageNo: 0,
          pageSize: 10
      },
      title: null,
      localSource: null
  };
  }

}
